package artid.com.arttogo.bean;

import org.json.JSONObject;
import java.io.Serializable;

/**
 *
 * 类名称：ArtCollectorsNewParser
 * 类描述：首页艺术家列表（除推荐外）
 * 创建人：耿卫斌
 * 创建时间：2017/5/2 14:19
 *
 */
public class ArtCollectorsNewParser extends AppItem implements Serializable{
    private String name_letter;//字母大小写
    private String realname;//艺术家名称
    private String artistimg;//艺术家头像
    private String artNum;//作品数
    private String followNum;//关注数
    private String artist_auth;//是否实名认证
    private String artist_id;//艺术家id
    private int is_follow;//是否关注
    @Override
    public void parse(JSONObject obj) {
        if (null == obj) {
            return;
        }
        name_letter = obj.optString("name_letter");
        realname = obj.optString("realname");
        artistimg = obj.optString("artistimg");
        artNum = obj.optString("artNum");
        followNum = obj.optString("followNum");
        artist_auth = obj.optString("artist_auth");
        artist_id = obj.optString("artist_id");
        is_follow = obj.optInt("is_follow");
    }

    public String getName_letter() {
        return name_letter;
    }

    public void setName_letter(String name_letter) {
        this.name_letter = name_letter;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getArtistimg() {
        return artistimg;
    }

    public void setArtistimg(String artistimg) {
        this.artistimg = artistimg;
    }

    public String getArtNum() {
        return artNum;
    }

    public void setArtNum(String artNum) {
        this.artNum = artNum;
    }

    public String getFollowNum() {
        return followNum;
    }

    public void setFollowNum(String followNum) {
        this.followNum = followNum;
    }

    public String getArtist_auth() {
        return artist_auth;
    }

    public void setArtist_auth(String artist_auth) {
        this.artist_auth = artist_auth;
    }

    public String getArtist_id() {
        return artist_id;
    }

    public void setArtist_id(String artist_id) {
        this.artist_id = artist_id;
    }

    public int getIs_follow() {
        return is_follow;
    }

    public void setIs_follow(int is_follow) {
        this.is_follow = is_follow;
    }

    public ArtCollectorsNewParser() {
    }

    public ArtCollectorsNewParser(String name_letter, String realname, String artistimg, String artNum, String followNum, String artist_auth, String artist_id, int is_follow) {
        this.name_letter = name_letter;
        this.realname = realname;
        this.artistimg = artistimg;
        this.artNum = artNum;
        this.followNum = followNum;
        this.artist_auth = artist_auth;
        this.artist_id = artist_id;
        this.is_follow = is_follow;
    }

    @Override
    public String toString() {
        return "ArtCollectorsNewParser{" +
                "name_letter='" + name_letter + '\'' +
                ", realname='" + realname + '\'' +
                ", artistimg='" + artistimg + '\'' +
                ", artNum='" + artNum + '\'' +
                ", followNum='" + followNum + '\'' +
                ", artist_auth='" + artist_auth + '\'' +
                ", artist_id='" + artist_id + '\'' +
                ", is_follow=" + is_follow +
                '}';
    }
}
